import axios from './axios'

//定义一个接口请求的方法
export const getMenu = (param) => {
    return axios.request({
        url:'/permission/getMenu',
        method: 'post',
        data: param
    })
} 

export const getData = () => {
    return axios.request({
        url: '/home/getData'
    })
}
//调用
export const getUser = (params) => {
    return axios.request({
        url:'/user/getUser',//对应拦截器的接口
        method:'get',//接口调用类型
        params,//把参数传递过去
    })
}